﻿<%@ include file="/static/include/topLess.jsp"%>

<script type="text/javascript">
function sendMessage(){
	//var url="${baseURL}/monitor/sendMessage";
	//window.location.href(url);
	window.document.form1.submit();
}
function selRec(){
	$.layer({
		title:"选择收件人",
        type: 2,
        maxmin: true,
        shade: [0.5,'#333'],
        offset: ['20px', ''],
        area: ['500px', '500px'],
        iframe: {src: 'selRec',scrolling: 'auto'}
	});	
	//window.open("selRec", "selectwindow", "width=500,height=600")
}
function closeCurwin(){
	parent.layer.closeAll();
}
if ("${requestScope.result}"=="success"){
	layer.msg("信息发送成功！", 1, 1, function(){
		parent.location.reload(true);
		parent.layer.closeAll();
	});
}

$().ready(function(){
	
	var maxfilenum = 5;
	
	
	
	
});

</script>
<table id="listTable">
<tbody>
<tr>
<th colspan="2"><img src="${ctx}/static/images/pages/cen/rig/ico_02.png" align="absmiddle">&nbsp;发送消息</th>
</tr> 
<form name="form1" action="${baseURL}/monitor/sendFi" method="post" enctype="multipart/form-data">
<input type="hidden" id="recids" name="recids" value="" />
<tr>
<td class="tab_td_all">收件人：<input type="text" class="tab_textbut" style="width:400px" name="rec" id="rec" value="${obj.pmFromName}"  /><input class="tab_but" type="button" value="选择" onclick="selRec('${obj.id}')"/></td>
</tr><tr>
<td class="tab_td_all">标&nbsp;&nbsp;&nbsp;题：<input type="text" class="tab_textbut" style="width:500px" name="title" id="title" value="${obj.title}"/></td>
</tr><tr>
<td class="tab_td_all">内&nbsp;&nbsp;&nbsp;容：<textarea rows="10" cols="60" style="color:#39a2d2" name="content" id="content">${obj.content}</textarea> </td>
</tr><tr>
<td class="tab_td_all">附件1：<input type="file" name="picFile1" id="upload1"></td>
</tr><tr>
<td class="tab_td_all">附件2：<input type="file" name="picFile2" id="upload2"></td>
</tr>
</form>
</tbody>
<tfoot>
<tr>
<td class="tab_td_all" align="center" colspan="2"><input class="tab_but" type="button" value="发送"
				onclick="sendMessage();" /><input class="tab_but" type="button" value="关闭"
				onclick="closeCurwin();" /></td>
</tr>
</tfoot>
</table>

<%@ include file="/static/include/bottom.jsp"%>